﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;

namespace TE3
{
	public class DrawManager
	{
		public Dictionary<string, IDrawable> Drawables;
		public DrawManager()
		{
			Drawables = new Dictionary<string, IDrawable>();
		}
		public void DrawDrawables(SpriteBatch spriteBatch, GraphicsDevice device, TextureHandler handler)
		{
			foreach (var drawable in Drawables)
			{
				drawable.Value.Draw(spriteBatch,device,handler);
			}
		}
	}
}
